home *** CD-ROM | disk | FTP | other *** search
/ World of Video / World of Video.iso / gfxprograms / 3dprograms / rayshade-4.0 / rayshade / smakefile < prev    next >
Makefile  |  1995-02-13  |  4KB  |  167 lines

  1. #
  2. # Makefile for rayshade.
  3. #
  4. # Craig Kolb
  5. #
  6. # SMakefile,v 4.1 1994/08/09 08:06:54 explorer Exp
  7. #
  8. # Bin directory
  9. #
  10. BINDIR = /usr/local 
  11. OPTIMIZE = OPTIMIZE
  12. URTINC =
  13. CCFLAGS = CPU=68040 NOSTKCHK MATH=68881 IGNORE=85+100+161+154+84+132 STRMERGE\
  14. DATA=AUTO DEFINE=exit=myexit
  15. URTLIB = LIB:rle.lib
  16. CC = sc
  17. MKDEP = /mkdep
  18. YACC = bison -y
  19. CLC = 
  20.  
  21. LIBRAYDIR = /libray
  22. LIBSHADEDIR = /libshade
  23. INCLUDE = IDIR=$(LIBRAYDIR) IDIR=$(LIBRAYDIR)/libcommon\
  24. IDIR=$(LIBRAYDIR)/libobj IDIR=$(LIBRAYDIR)/libsurf IDIR=$(LIBSHADEDIR)\
  25. IDIR=/ $(URTINC)
  26. YFLAGS = -d
  27.  
  28. LIBRAY = $(LIBRAYDIR)/libray.a
  29. LIBSHADE = $(LIBSHADEDIR)/libshade.a
  30.  
  31. #
  32. # If you are using LINDA, add -DLINDA
  33. # If you are running 'tsnet'-style LINDA, add -DTSNET
  34. # If you are running on a Multimax, add -DMULTIMAX -DSHAREDMEM
  35.  
  36. CFLAGS = $(CCFLAGS) $(INCLUDE) $(OPTIMIZE)
  37.  
  38. #
  39. # C-Linda flags, if appropriate
  40. #CLFLAGS = -linda ts 20000
  41. #
  42.  
  43. .c.o:
  44.     $(CC) $(CFLAGS) $<
  45.  
  46. SHELL = /bin/sh
  47.  
  48. LIBS = /libshade/shade.lib /libray/ray.lib /libextra/extra.lib LIB:rle.lib\
  49. LIB:unix.lib LIB:fl.lib LIB:scm881.lib LIB:sc.lib
  50.  
  51. LDFLAGS = SC SD ND NOICONS
  52.  
  53. DRIVE_C =    main.c raytrace.c version.c # _main.c exit.c
  54.  
  55. DRIVE_H =    raytrace.h
  56.  
  57. DRIVE_O =    main.o raytrace.o version.o # _main.o exit.o
  58.  
  59. HFILES = $(DRIVE_H)
  60.  
  61. CFILES = $(DRIVE_C)
  62.  
  63. SHFILES = Makefile.SH
  64.  
  65. OBJ = $(DRIVE_O)
  66.  
  67. DEPENDSRC = $(DRIVE_C)
  68.  
  69. #
  70. # Change $(CC) below to $(CLC) if using Linda.
  71. #
  72. rayshade: $(OBJ) # $(LIBS)
  73.     slink FROM LIB:c.o main.o raytrace.o version.o TO rayshade $(LDFLAGS)\
  74. LIB $(LIBS)
  75.  
  76.  
  77. #
  78. # Uncomment the following rule if using Linda.
  79. #
  80. #raytrace.lo: raytrace.cl
  81. #    $(CLC) $(INCLUDE) $(LCFLAGS) -c raytrace.cl
  82.  
  83. #
  84. # End of configuration section
  85. #
  86. install:    rayshade
  87.         mv rayshade $(BINDIR)/rayshade
  88.  
  89. clean:
  90.     delete \#?.o quiet
  91.  
  92. realclean:
  93.     delete \#?.o y.tab.h
  94.     delete \#?.orig Makefile QUIET
  95.  
  96. lint:
  97.     lint $(CFLAGS) -x $(CFILES) -lm
  98.  
  99. tags:
  100.     ctags -t $(CFILES)
  101.  
  102. # DO NOT DELETE THIS LINE
  103. main.o: main.c
  104. main.o: /config.h
  105. #main.o: /include/rle.h
  106. #main.o: /include/rle_code.h
  107. #main.o: /include/rle_raw.h
  108. main.o: /libray/libcommon/color.h
  109. main.o: /libray/libcommon/common.h
  110. main.o: /libray/libcommon/error.h
  111. main.o: /libray/libcommon/expr.h
  112. main.o: /libray/libcommon/ray.h
  113. main.o: /libray/libcommon/transform.h
  114. main.o: /libray/libcommon/vector.h
  115. main.o: /libray/libobj/bounds.h
  116. main.o: /libray/libobj/geom.h
  117. main.o: /libshade/funcdefs.h
  118. main.o: /libshade/options.h
  119. main.o: /libshade/picture.h
  120. main.o: /libshade/rayshade.h
  121. main.o: /libshade/stats.h
  122. main.o: /libshade/viewing.h
  123. raytrace.o: raytrace.c
  124. raytrace.o: /config.h
  125. #raytrace.o: /include/rle.h
  126. #raytrace.o: /include/rle_code.h
  127. #raytrace.o: /include/rle_raw.h
  128. raytrace.o: /libray/libcommon/color.h
  129. raytrace.o: /libray/libcommon/common.h
  130. raytrace.o: /libray/libcommon/error.h
  131. raytrace.o: /libray/libcommon/expr.h
  132. raytrace.o: /libray/libcommon/ray.h
  133. raytrace.o: /libray/libcommon/sampling.h
  134. raytrace.o: /libray/libcommon/transform.h
  135. raytrace.o: /libray/libcommon/vector.h
  136. raytrace.o: /libray/libobj/bounds.h
  137. raytrace.o: /libray/libobj/geom.h
  138. raytrace.o: /libray/libsurf/atmosphere.h
  139. raytrace.o: /libray/libsurf/surface.h
  140. raytrace.o: /libshade/funcdefs.h
  141. raytrace.o: /libshade/options.h
  142. raytrace.o: /libshade/picture.h
  143. raytrace.o: /libshade/rayshade.h
  144. raytrace.o: /libshade/stats.h
  145. raytrace.o: /libshade/viewing.h
  146. raytrace.o: raytrace.h
  147. version.o: version.c
  148. version.o: /config.h
  149. version.o: /libray/libcommon/color.h
  150. version.o: /libray/libcommon/common.h
  151. version.o: /libray/libcommon/error.h
  152. version.o: /libray/libcommon/expr.h
  153. version.o: /libray/libcommon/ray.h
  154. version.o: /libray/libcommon/transform.h
  155. version.o: /libray/libcommon/vector.h
  156. version.o: /libray/libobj/bounds.h
  157. version.o: /libray/libobj/geom.h
  158. version.o: /libshade/funcdefs.h
  159. version.o: /libshade/rayshade.h
  160. version.o: /libshade/stats.h
  161. version.o: /patchlevel.h
  162. _main.o: _main.c
  163.     gcc -O -fstrength-reduce -finline-functions -c _main.c
  164. exit.o: exit.c
  165.     gcc -O -fstrength-reduce -finline-functions -c exit.c
  166.